//
//  UUIDchain.swift
//  MobileRTCSwiftSample
//
//  Created by zhangheng on 2019/7/3.
//  Copyright © 2019 Zoom Video Communications, Inc. All rights reserved.
//

import Foundation

/*
import Security
import KeychainAccess

let kChainGroup = "U5VDWDWVJ4.com.onemeeting.macos1meeting"  //自定义设定
let kChainIdentifier = "com.onemeeting.macos1meeting"       //跟app对应，固定值
let kChainKeyuuid = "kishikawakatsumi"

class UUIDchain: NSObject {
    class func saveUUIDToKeyChain() {
        let keychainItemWrapper = Keychain.init(service: kChainIdentifier)
        if keychainItemWrapper[kChainKeyuuid] == nil {
            keychainItemWrapper[kChainKeyuuid] = UUIDchain.getUUIDString()
        }
    }
    
    class func readUUIDFromKeyChain() -> String {
        let keychainItemWrapper = Keychain.init(service: kChainIdentifier)
        let superSecretValue = keychainItemWrapper[kChainKeyuuid]
        return superSecretValue!
    }
    
    class func getUUIDString() -> String {
        let uuidRef = CFUUIDCreate(kCFAllocatorDefault)
        let strRef = CFUUIDCreateString(kCFAllocatorDefault, uuidRef)
        let uuidString = (strRef! as String).replacingOccurrences(of: "-", with: "")
        return uuidString
    }
    
}
*/
